<!DOCTYPE html>
<html>

<head>

    {include file="Public/header"}
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;" class="x_sorll">
<!-- 标题 -->
<div class="page-heade">
    <h2 class="title_color text-center">{:db('cg_ti_type')->where('id',$data.type_id)->value('title')}{:db('cg_ti_cate')->where('id',$data.cate_id)->value('title')}</h2>
</div>
<!-- 标题 -->
<div>
    <form action="" class="form-inline">
     <table class="table-bordered table">
        <tr>
            <td><a href="{:url('tijinchang',['trackId'=>request()->param('trackId'),'workId'=>request()->param('workId'),'myId'=>request()->param('myId')])}" class="btn btn-sm btn-primary">审批决策宝</a></td>
        </tr>
    </table>
        <table class="table row-margin-top table-bordered bud_hei">
           
           
           
            <tr>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">主题</label></td>
                <td colspan="7" class="font-bold">{$data.title}</td>
            </tr>
            <tr>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">编号</label></td>
                <td>{$data.sn}</td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">原申请编号</label></td>
                <td>{if $data.old}<a href="{:url('view',['id'=>$data.old])}" class="J_menuItem">{:db('cg_ti')->where('id',$data.old)->value('sn')}</a>{else}无{/if}</td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">修改后编号</label></td>
                <td>{if $data.new}<a href="{:url('view',['id'=>$data.new])}" class="J_menuItem">{:db('cg_ti')->where('id',$data.new)->value('sn')}</a>{else}无{/if}</td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">状态</label></td>
                <td>{$data.status_title}</td>
            </tr>
            <tr>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">申请人</label></td>
                <td><a href="javascript:;">{$data.cusername}({$data.job})</a></td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">申请人部门</label></td>
                <td>{$data.sjrbm}</td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">申请时间</label></td>
                <td>{:date('Y-m-d',$data.ctime)}</td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">经销商性质</label></td>
                <td>{if $data.direct==1}直营{else}经销{/if}</td>
            </tr>
            <tr>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">经销商名称</label></td>
                <td><span class="font-bold">{$data.jxs_title}
                    <a href="{:url('Commonti/jxsyj')}?aid={$data.id}" class="J_menuItem"><span style="display: none;">经销商决策信息</span><span class="glyphicon glyphicon-zoom-in fangda" aria-hidden="true"></span></a></span></td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">所属分区</label></td>
                <td>{$data.zoning}</td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">所属省份</label></td>
                <td>{$data.provice}</td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">所属城市</label></td>
                <td>{$data.city}</td>
            </tr>
        </table>
        <table class="table table-striped row-margin-top table-bordered text-center bud_hei">
            <thead>
            <tr class="info">
                <th rowspan="2" class="text-center">状态</th>
                <th rowspan="2" class="text-center">核查结果</th>
                <th rowspan="2" class="text-center">序号</th>
                <th rowspan="2" class="text-center">明细编号</th>
                <th rowspan="2" class="text-center">系统名称</th>
                <th rowspan="2" class="text-center">负责人</th>
                <th rowspan="2" class="text-center">网店名称</th>
                <th rowspan="2" class="text-center">系统网点数</th>
                <th rowspan="2" class="text-center">申请进店数</th>
                <th rowspan="2" class="text-center">网点详细地址</th>
                <th rowspan="2" class="text-center">网点类型</th>
                <th rowspan="2" class="text-center">产品系列</th>
                <th rowspan="2" class="text-center">进场月份</th>
                <th rowspan="2" class="text-center">预计核销时间</th>
                <th rowspan="2" class="text-center">单点销量(万元)</th>
                <th rowspan="2" class="text-center">已进场条码产品名称</th>
                <th class="text-center" colspan="8">本次申请进场产品</th>
                <th class="text-center" colspan="10">本次申请进场费用</th>
                <th rowspan="2" class="text-center">备注</th>
                <th rowspan="2" class="text-center">取消原因</th>
            </tr>
            <tr class="info">
                <th class="text-center">本次申请进场产品</th>
                <th class="text-center">标准出产价</th>
                <th class="text-center">经销商原供货价</th>
                <th class="text-center">加价率</th>
                <th class="text-center">零售商供货率</th>
                <th class="text-center">加价率</th>
                <th class="text-center">公司建议零售价</th>
                <th class="text-center">加价率</th>
                <th class="text-center">费用类型</th>
                <th class="text-center">费用支付方式</th>
                <th class="text-center">未税费用金额(元)</th>
                <th class="text-center">是否增值税<br>(可抵扣)</th>
                <th class="text-center">税率</th>
                <th class="text-center">含税费用金额(元)</th>
                
                <th class="text-center">实际投入费用<br>(元)</th>
                <th class="text-center">已核销费用(元)</th>
                <th class="text-center">费用计入部门</th>
                
                <th class="text-center">费用计入方案</th>
                
            </tr>
            </thead>
            {volist name="data.list" id="group"}
            {volist name="group._child" id="row"}
            <tr>
                <td>{if $row.status==0}正常{elseif $row.status==2}取消{/if}</td>
                
                <td>{if $row.earesult}{$row.earesult}{else}无{/if}</td>
                <td>{$row.sn}</td>
                <td>
                    <a href="{:url('Tijinchang/dataview',['id'=>$row.id])}" class="J_menuItem">{$data.sn}-{$row.sn}</a>
                    <a href="{:url('Commonti/decisionb')}?did={$row.id}"  class="J_menuItem"><span style="display: none;">决策信息</span><span class="glyphicon glyphicon-zoom-in fangda" aria-hidden="true" style="display: inline-block;"></span></a>
                </td>
                <td>{$row.system_title}</td>
                <td>{$row.head}</td>
                <td>
                    {$row.net_title}
                    <a href="{:url('Commonti/netyj')}?did={$row.id}" class="J_menuItem"><span style="display: none;">网点决策依据</span><span class="glyphicon glyphicon-zoom-in fangda" aria-hidden="true" style="display: inline-block;"></span></a>
                </td>
                <td>{$row.system_net_num}</td>
                <td>待做</td>
                <td>{$row.net_addr}</td>
                <td>{$row.net_cat}</td>
                <td>{$row.product_series}
                    <a href="{:url('Commonti/seriosroi')}?did={$row.id}" class="J_menuItem"><span style="display: none;">ROI决策信息</span><span class="glyphicon glyphicon-zoom-in fangda" aria-hidden="true" style="display: inline-block;"></span></a></td>
                <td>{$row.year}-{$row.month}</td>
                <td>{:date('Y-m-d',$row.expCanTime)}</td>
                <td>{$row.net_ddxl}</td>
                <td>{$group.net_yjc}</td>
                <td>{$row.f1_title}<a href="{:url('Commonti/productroi')}?did={$row.id}" class="J_menuItem"><span style="display: none;">ROI决策信息</span><span class="glyphicon glyphicon-zoom-in fangda" aria-hidden="true" style="display: inline-block;"></span></a></td>
                <td>{$row.f2}元/{$row.unit}</td>
                <td>{$row.f3}元/{$row.unit}</td>
                <td>{$row.jiajialv1}%</td>
                <td>{$row.f4}元/{$row.unit}</td>
                <td>{$row.jiajialv2}%</td>
                <td>{$row.f5}元/{$row.unit}</td>
                <td>{$row.jiajialv3}%</td>
                <td>{$row.feetype}</td>
                <td>{$row.paymethod}</td>
                <td>{$row.amount}</td>
                <td>{$row.isVAT}</td>
                <td>{$row.shuilv}%</td>
                <td>{$row.hanshui}</td>
                <td>{$row.yjsjtrfy}</td>

                <td></td>
                <td>{$row.jrbm}</td>
                
                <td>{$row.project}</td>
                
                <td>{$row.brief}</td>
                <td>{$row.cancel_reason}</td>
            </tr>
            {/volist}
            <tr class="trTotal1 font-bold">
                <td colspan="10">小计</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td>{$group.xj_weishui}</td>
                <td></td>
                <td></td>
                <td>{$group.xj_hanshui}</td>
                <td>{$group.xj_shijitouru}</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td colspan="7"></td>
            </tr>
            {/volist}
            <tr class="trTotal1 font-bold">
                <td colspan="10">合计</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td>{$zj_weishui}</td>
                <td></td>
                <td></td>
                <td>{$zj_hanshui}</td>
                <td>{$zj_shijitouru}</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td colspan="7"></td>
            </tr>
        </table>
        <div class="contact-box">
            <p class="font-bold">
                本申请中包含{$wds}个网点，其中{volist name="feiarr" id='f'}{$f.title}:{$f.feiyong}（元）{/volist} 总费用:{$zj_shijitouru}（元）</p>
        </div>
        <table class="table table-bordered text-left bud_hei">
            <tr class="info">
                <th class="text-left font-bold">审批意见</th>
            </tr>
            {volist name="logs" id="l"}
          <tr>
              <td>{$l.USERNAME} 审批动作：{$l.MEMO}；审批意见：{if $l.COMMENTS}{$l.COMMENTS}{else/}无{/if}(审批时间：{$l.ACTIONTIME})</td>
          </tr>
          
          {/volist}
      </table>
      <div class="row sub_btn" style="width:100%;text-align:center;padding: 20px 0">
        <input type="button" class="btn btn-success" value="进入下一步" id="tijiao">
    </div>
    </form>
</div>
<div class="applyImg font-bold" style="display: none;">
    申报已生效
</div>
<div class="SuccessImg font-bold" style="display: none">
    费用已核销
</div>
<!-- 全局js -->
{include file="Public/footer"}
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script type="text/javascript">
     //提交工作流
        $('#tijiao').click(function () {
           
            location.href='{:url("gzlsp",["workId"=>request()->param("workId"),"trackId"=>request()->param("trackId")])}'
               
            return false
        })
    </script>
</body>

</html>
